Adjusting tabs 发表于 2016-01-20 | 分类于 csssecrets HTML1234567891011121314151617181920212223242526272829303132333435<pre><code>// Default tab sizewhile (true) { var d = new Date(); if (d.getDate()==1 && d.getMonth()==3) { alert("TROLOLOL"); }}</code></pre><pre><code>// tab-size: 2;while (true) { var d = new Date(); if (d.getDate()==1 && d.getMonth()==3) { alert("TROLOLOL"); }}</code></pre><pre><code>// tab-size: 4;while (true) { var d = new Date(); if (d.getDate()==1 && d.getMonth()==3) { alert("TROLOLOL"); }}</code></pre><pre><code>// tab-size: 0;while (true) { var d = new Date(); if (d.getDate()==1 && d.getMonth()==3) { alert("TROLOLOL"); }}</code></pre> CSS123456789101112131415161718/** * Adjusting tabs */pre { padding: .5em; line-height: 1.5; background: hsl(20, 50%, 95%); font-family: Consolas, Monaco, monospace;}pre:nth-of-type(2) { tab-size: 2 }pre:nth-of-type(3) { tab-size: 4 }pre:nth-of-type(4) { tab-size: 0 }code { font: inherit;}